﻿using System.Data.Entity;
using WS.EKA.Model;
using WS.EKA.Utilities;

namespace WS.EKA.DataAccess
{
    public class DBContextBase : DbContext
    {
        public DBContextBase()
            : base(ConfigFactory.CreateConfigInstance().ConnectionString)
        { }

        public DBContextBase(string conn)
            : base(conn)
        { }

        protected DbSet<Account> Account { get; set; }

        protected DbSet<ProductCatagory> ProductCatagory { get; set; }
        protected DbSet<Product> Product { get; set; }
        protected DbSet<ProductComment> ProductComment { get; set; }
        protected DbSet<Collect> Collect { get; set; }
        public DbSet<BaskOrderLog> BaskOrderLog { get; set; }
        public DbSet<BaskOrderComment> BaskOrderComment { get; set; }

        protected DbSet<Order> Order { get; set; }
        protected DbSet<OrderProduct> ProductItem { get; set; }
        protected DbSet<ShoppingCart> ShoppingCart { get; set; }
        protected DbSet<ProductProperty> ProductProperty { get; set; }

        protected DbSet<DispatchMode> DispatchMode { get; set; }
        protected DbSet<MemberAddress> MemberAddress { get; set; }
        protected DbSet<Payment> Payment { get; set; }
        protected DbSet<MemberMessage> MemberMessage { get; set; }
        protected DbSet<ProductBrandRelation> ProductBrandRelation { get; set; }

        protected DbSet<MemberFavourTicket> MemberFavourTicket { get; set; }
        protected DbSet<ProductAttribute> ProductAttribute { get; set; }
        protected DbSet<SalesPromotion> SalesPromotion { get; set; }

        protected DbSet<BlessCard> BlessCard { get; set; }
        protected DbSet<DispatcherMode> DispatcherMode { get; set; }
        protected DbSet<DispatchItemRegion> DispatchItemRegion { get; set; }
        protected DbSet<Pack> Pack { get; set; }

        protected DbSet<FullAndDiscount> FullAndDiscount { get; set; }
        protected DbSet<FullAndFavourTicket> FullAndFavourTicket { get; set; }
        protected DbSet<FullAndFree> FullAndFree { get; set; }
        protected DbSet<FullAndGift> FullAndGift { get; set; }
        protected DbSet<FullAndScore> FullAndScore { get; set; }
        protected DbSet<ProductMemberRankPrice> ProductMemberRankPrice { get; set; }
        protected DbSet<MemberRank> MemberRank { get; set; }
        //protected DbSet<ProductAttribute> ProductAttribute { get; set; }
        protected DbSet<DispatchItem> DispatchItem { get; set; }
        protected DbSet<Region> Region { get; set; }
    }
}
